// @import '~@angular/material/prebuilt-themes/deeppurple-amber.css';
@import '~@angular/material/theming';
@include mat-core();
//自定义默认主题
$my-app-primary: mat-palette($mat-indigo);
$my-app-accept: mat-palette($mat-pink, A200, A100, A400);
$my-app-warn: mat-palette($mat-red);
$my-app-theme: mat-light-theme($my-app-primary, $my-app-accept, $my-app-warn);
@include angular-material-theme($my-app-theme);
//自定义黑夜主题
$my-dark-primary: mat-palette($mat-blue-grey);
$my-dark-accept: mat-palette($mat-amber, A200, A100, A400);
$my-dark-warn: mat-palette($mat-deep-orange);
$my-dark-theme: mat-dark-theme($my-dark-primary, $my-dark-accept, $my-dark-warn);
//切换主题需要通过这个类
.app-dark-theme {
    @include angular-material-theme($my-dark-theme);
}